/*
 * @Description: 巴士
 * @Author: Aroma
 * @Date: 2024-09-19 19:56:32
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-19 19:56:35
 * @别瞎看: 你个无脑牛马
 */
class Bus extends Automobile {
    private int seatCount; // 座位数

    public Bus(String brand, String plateNumber, int seatCount) {
        super(brand, plateNumber);
        this.seatCount = seatCount;
    }

    @Override
    public double getRent() {
        if (seatCount <= 16) {
            return 400;
        } else {
            return 600;
        }
    }
}